package com.woniuxy.hotel.user.util;

import java.util.List;

public class Page<T> {
	private int index; // 查询的起始位置
	private int count; // 每页查询条数
	private int total; // 总条数
	private int currentPage; // 当前页码
	private List<T> data; // 当前页的所有数据
	private String url;// 分页跳转地址
	private int nextPage;// 下一页
	private int prevPage;// 上一页
	private int totalSize;// 总页码数

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public int getPrevPage() {
		return prevPage;
	}

	public void setPrevPage(int prevPage) {
		this.prevPage = prevPage;
	}

	public int getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}

	@Override
	public String toString() {
		return "Page [index=" + index + ", count=" + count + ", total=" + total + ", currentPage=" + currentPage
				+ ", data=" + data + ", url=" + url + ", nextPage=" + nextPage + ", prevPage=" + prevPage
				+ ", totalSize=" + totalSize + "]";
	}

}
